//
//  PlatformDetailCell.m
//  WorkNest
//
//  Created by qbm360 on 15/8/27.
//  Copyright (c) 2015年 nest. All rights reserved.
//

#import "PlatformDetailCell.h"

@interface PlatformDetailCell ()

@property (weak, nonatomic) IBOutlet UILabel *type;
@property (weak, nonatomic) IBOutlet UILabel *style;
@property (weak, nonatomic) IBOutlet UILabel *productDescription;
@property (weak, nonatomic) IBOutlet UILabel *fabricContent;
@property (weak, nonatomic) IBOutlet UILabel *color;
@property (weak, nonatomic) IBOutlet UILabel *size;
@property (weak, nonatomic) IBOutlet UILabel *time;
@property (weak, nonatomic) IBOutlet UILabel *date;
@property (weak, nonatomic) IBOutlet UILabel *designerId;

@end

@implementation PlatformDetailCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModel:(ProductDetailModel *)model {
    _model = model;
    self.type.text = _model.productType;
    self.style.text = _model.productStyle;
    self.productDescription.text = _model.productDescription;
    self.fabricContent.text = _model.fabricContent;
    self.color.text = _model.color;
    self.size.text = _model.size;
    self.time.text = _model.predictProTime;
    self.date.text = [_model.orderModelTime substringToIndex:10];
    self.designerId.text = _model.designerId;
}

@end
